<?php
require_once("lib/acp_service.php");
if (isset ( $_POST ['signature'] )) {
				
	if(AcpService::validate ( $_POST ) ){
		$orderId = $_POST ['orderId']; //其他字段也可用类似方式获取
		$respCode = $_POST ['respCode']; //判断respCode=00或A6即可认为交易成功
				
		$_GET['act'] = 'payment';
		$_GET['op']	= 'acpayreturn';
		$_GET['payment_code']='acpay';
		$_GET['result_code']	= $_POST ['respCode'];
		$_GET['out_trade_no']	= $_POST ['orderId'];
		$_GET['transaction_id']	= $_POST ['queryId'];;
		require_once(dirname(__FILE__).'/../../../index.php');
	}
	else{
		echo "验签失败";
	}
				
			
	} else {
		echo '签名为空';
	}

?>